package com.jhh.pay.channel.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jhh.pay.channel.service.ConsulService;

@RestController
@RequestMapping("/consul")
public class ConsulController {
	
	@Autowired
	private ConsulService consulService;

	@RequestMapping("/health")
	public String health() {
		return consulService.health();
	}
}
